{include file="/sum/common/script" /}

<div id="addEdit" class="faq-form" v-cloak>
    <el-container class="panel-block">
        <el-main>
            <el-scrollbar height="100%">
                <el-form :model="form.model" :rules="form.rules" ref="formRef" label-width="100px">
                    <el-form-item label="分类名称" prop="name">
                        <el-input class="sa-w-360" v-model="modelName" placeholder="请输入分类名称">
                            <template #prepend>
                                <el-select v-model="language.field_key.name" placeholder="Select" style="width: 115px">
                                    <el-option v-for="(item,index) in language.option" :key="index" :label="item.title" :value="index" />
                                </el-select>
                            </template>
                        </el-input>
                    </el-form-item>
                    <el-form-item label="权重" prop="weigh">
                        <el-input class="sa-w-360" v-model="form.model.weigh" placeholder="请输入权重" type="number">
                        </el-input>
                    </el-form-item>

                    <el-form-item label="状态" required>
                        <el-radio-group v-model="form.model.status">
                            <el-radio label="normal">正常</el-radio>
                            <el-radio label="hidden">隐藏</el-radio>
                        </el-radio-group>
                    </el-form-item>
                </el-form>
            </el-scrollbar>
        </el-main>
        <el-footer class="sa-footer--submit sa-flex sa-row-right">
            <el-button type="primary" @click="onConfirm">确定</el-button>
        </el-footer>
    </el-container>
</div>